﻿using Domain.Entities;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace AiBLSmartEdu.Module.AIMedicalAssistant.API.Migrations;

[Migration(202506091822)]
public class DialogueAddColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(Dialogue)))
          .AddColumn(MigrationExpressions.ColumnNameFor<Dialogue>(nameof(Dialogue.Title))).AsString(255).Nullable().WithColumnDescription("标题");
    }
}